Avoid repeated #define's in public headers.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 2 Jul 2005 22:37:55 +0000 (22:37 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 2 Jul 2005 22:37:55 +0000 (22:37 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/include/public/io/blkif.h
xen/include/public/io/domain_controller.h

index 664345ac2bc1dbdc6fa36abd99bbfab622343c88..a5b0147b399e9e0336dc55cd2b6837f4e4bd8689 100644 (file)
@@ -11,7 +11,9 @@
 
 #include "ring.h"
 
+#ifndef blkif_vdev_t
 #define blkif_vdev_t   u16
+#endif
 #define blkif_sector_t u64
 
 #define BLKIF_OP_READ      0
index 418d714e60efc9b5dd0e0c29d25736cdc363efb8..3a9f2e8bf7b8c1562afeff14eda929c3f9a9da31 100644 (file)
@@ -87,10 +87,10 @@ typedef struct control_if {
 #define CMSG_BLKIF_FE_INTERFACE_DISCONNECT      34
 #define CMSG_BLKIF_FE_INTERFACE_QUERY           35
 
-/* These are used by both front-end and back-end drivers. */
+#ifndef blkif_vdev_t
 #define blkif_vdev_t   u16
+#endif
 #define blkif_pdev_t   u32
-#define blkif_sector_t u64
 
 /*
  * CMSG_BLKIF_FE_INTERFACE_STATUS: